html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  touch-action: none;
}
.row {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page {
  display: none;
  width: 100%;
  height: 100%;
}
@font-face {
  font-family: myFont;
  src: url('../font/versa.otf');
}
@font-face {
  font-family: myFont2;
  src: url('../font/font-subfont.ttf');
}
.infinite {
  animation-iteration-count: infinite;
}
@keyframes rotate {
  0% {transform:rotate(0deg);}
  50% {transform:rotate(180deg);}
  100% {transform:rotate(360deg);}
}
#load-page {
  background: #ffd545;
  font-family: myFont;
  color: #fff;
  justify-content: center;
  display: flex;
}
.are-u-ready {
  font-size: 0.48rem;
  margin: 0.26rem 0 0.4rem 0;
}
.loading-gif {
  width: 38%;
}
#progress {
  font-size: 0.82rem;
  margin-top: 0.4rem;
}
.contain {
  justify-content: center;
  width: 100%;
  height: 100%;;
}
#home-page {
  background: #ffde2d;
  background-size: cover;
  background-position: bottom center;
}
#home-page .contain {
  width: 90%;
  margin: 0 auto;
}
.bg-music {
  width: 0.4rem;
  align-self: flex-end;
  position: fixed;
  right: 0.28rem;
  top: 0.28rem;
  display: none;
  z-index: 99;
}
#png-10 {
  animation: rotate 4s linear infinite;
}
#png-15 {
  width: 5.6rem;
  margin-top: 0.74rem;
}
#home-page .contain {
  justify-content: flex-start;
}
#png-9 {
  width: 5.6rem;
  margin-top: 0.10rem;
}
#png-11 {
  width: 5.6rem;
  margin-top: 1rem;
}
#png-13 {
  width: 2.0rem;
  margin-top: 0.76rem;
}
.btn-div {
  display: block;
  position: relative;
  text-align: center;
}
#png-12 {
  position: fixed;
  bottom: 0.5rem;
  width: 2.6rem;
  margin-left: -1.2rem;
}
#game-rule-1 {
  display: none;
}
.game-1 .top{
  background: rgb(237, 124, 126);
  height: 78%;
  width: 100%;
  position: relative;
}
.jt {
  width: 7.5rem;
}
.png-7 {
  /* position: absolute;
  bottom: 0;
  overflow: hidden; */
}
.png-7-1 {
  position: absolute;
  bottom: -2.6rem;
}
#game-rule-1 .png-6 {
  margin-top: 1rem;
}
.png-6 {
  width: 1.3rem;
  z-index: 99;
}
#game-page-1 .png-6 {
  justify-self: flex-start;
}
.start-btn {
  background: #fff;
  color: #f54949;
  width: 3rem;
  height: 1.0rem;
  font-family: myFont;
  font-size: 0.6rem;
  border: none;
}
#start-btn-1 {
  margin-top: 1.66rem;
}
.game-1 .bottom{
  background: rgb(68,138,202);
  height: 22%;
  width: 100%;
  position: relative;
  overflow: hidden;
  z-index: 100;
}
#png-4 {
  width: 3.6rem;
  margin-top: 0.5rem;
}
.rule {
  font-size: 0.26rem;
  color: rgb(86, 90, 93);
}
#game-rule-1 .rule-title {
  border-top: 1px solid rgb(86, 90, 93);
  width: 2.4rem;
  position: relative;
  margin-top: 0.6rem;
  margin-bottom: 0.26rem;
}
#game-rule-1 .rule-title .text {
  display: inline-block;
  width: 1.4rem;
  position: absolute;
  top: -0.22rem;
  left: 0.5rem;
  background: rgb(237, 124, 126);
  text-align: center;
  font-weight: bold;
  font-size: 0.28rem;
}
.rule p {
  margin: 0;
  font-weight: bold;
}
.red {
  color: rgb(240, 29, 29);
}
#game-page-1 {
  display: none;
}
.time {
  color: #fff;
  font-family: myFont;
  font-size: 1rem;
  margin-top: 0.6rem;
}
#game-page-1 .png-7 {
  /* bottom: 0.4rem; */
}
#game-page-1 .png-6 {
  /* bottom: 3.7rem; */
}
#time-up-page {
  display: none;
  background: rgb(254,83,91);
}
#png-2 {
  width: 5rem;
  position: relative;
  left: 1.32rem;
  margin-top: 1rem;
}
#png-1 {
  width: 4.4rem;
  position: relative;
  top: -3rem;
}
#game-rule-2 {
  display: none;
}
.game-2 .left {
  width: 50%;
  height: 100%;
  background: rgb(154, 214, 239);
}
.game-2 .contain {
  justify-content: flex-start;
}
.game-2 .right {
  width: 50%;
  height: 100%;
  background: rgb(237, 124, 126);
}
.game-2 .contain-bg {
  width: 100%;
  height: 100%;
  z-index: -1;
  position: absolute;
}
#png-3 {
  width: 3.6rem;
  margin-top: 0.8rem;
}
.game-2 .rule {
  margin-top: 0.6rem;
  margin-bottom: 0.8rem;
}
.png-5 {
  width: 1.6rem;
}
.longfor {
  width: 100%;
  justify-content: space-around;
}
.longfor-color {
  position: relative;
}
#game-page-2 .longfor-color {
  flex-grow: 1;
  height: 100%;
}

.longfor-color .color {
  color: #353535;
  font-size: 0.34rem;
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
}
#start-btn-2 {
  z-index: 99;
  margin-top: 1.6rem;
}
.game-2 .rule-title {
  border-top: none;
  margin-top: 0.2rem;
}
.game-2 .rule-title .text {
  background: none;
  position: relative;
  top: -2px;
  left: 0;
  font-weight: bold;
}
.line {
  width: 0.6rem;
  height: 1px;
  border-top: 1px solid rgb(86, 90, 93);
}
#game-page-2 {
  display: none;
}
#game-page-2 .time {
  color: rgb(240, 29, 29);
  z-index: 99;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
#game-page-2 .longfor {
  height: 100%;
  width: 100%;
}
.result-page {
  display: none;
  background: #ffde2d;
  color: #743a3a;
  font-size: 0.4rem;
  font-weight: bold;
}
.result-page .contain {
  justify-content: space-between;
}
.result-page p {
  margin: 0;
  padding: 0;
}
.res-text {
  align-items: flex-start;
  margin-top: 0.26rem;
  letter-spacing: 3px;
  width: 88%;
  /* font-weight: normal; */
}
#res-title {
  color: #fe535b;
  font-family: myFont;
  max-width: 100%;
}
#res-score {
  font-size: 1.2rem;
  font-family: myFont2;
  color: #fe535b;
  margin: 0 0.24rem;
}
.code p {
  font-size: 0.24rem;
}
.code-img {
  margin-bottom: 8px;
  width: 1.5rem;
  background: #fff;
  padding: 0.1rem;
}
.picture {
  position: relative;
  margin-top: 0.1rem;
  margin-bottom: 1rem;
  /*height: 5.2rem;*/
}
#res-img {
  width: 5.5rem;
}
.yinzh {
  position: absolute;
  right: -0.4rem;
  bottom: 0.2rem;
  width: 1.4rem;
}
.jt-item-down .jt{
  /* margin-top: 1rem; */
}
#game-page-1 .jt-item-down .png-6 {
  bottom: 0.75rem;
}
#game-1-wait .jt-item {
  margin-top: 0;
}
#game-1-wait .jt-item.jt-item-down {
  margin-top: 0;
}
#game-1-wait .jt-item-down .jt {
  margin-top: -1.8rem;
}
#game-page-1 #game-1-wait .jt-item-down .png-6 {
  bottom: 0.34rem;
}
#game-page-1 #game-1-wait .png-6 {
  bottom: 1.4rem;
  display: none;
}
#game-1-current .jt-item-up {
  /* margin-top: 0.8rem;
  position: absolute;
  top: 8.2rem; */
}
#game-1-current .jt-item-down {
  /* position: absolute;
  top: 2rem;
  left: 0; */
}
#game-page-2 .longfor-color .color {
  margin-top: 0.23rem;
  top: 50%;
}
#game-page-2 .longfor-color .png-5 {
  width: 1.4rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}
#game-1-wait .jt-item-up .png-7 {
  position: relative;
  top: -1.4rem;
  left: 0;
}
#game-1-wait .jt-item-up .png-6 {
  position: absolute;
  top: 0.6rem;
}
.red {
  background: rgb(237, 124, 126);
}
.blue {
  background: rgb(154, 214, 239);
}
.white {
  background: #fff;
}
.green {
  background: rgb(21,163,163);
}
.black {
  background: #333333;
}
.rule {
  z-index: 99;
}
.rule span.red {
  background: none;
}
.page {
  position: fixed;
  top: 0;
  left: 0 ;
}
.result-page .code {
  /* text-align: center;
  align-self: center; */
  text-align: center;
  margin-bottom: 0.2rem;
  margin-top: 0.46rem;
}
#game-rule-1 .jt-div {
  position: relative;
  overflow: hidden;
  margin-top: 0.8rem;
  width: 100%;
  height: 8.6rem;
}
#game-rule-1 .png-7 {
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
}
#game-rule-1 .png-6 {
  margin: 0;
  position: absolute;
  top: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
}
#game-rule-1 #start-btn-1 {
  margin: 0;
  position: absolute;
  bottom: 0.4rem;
  left: 50%;
  z-index: 99;
  transform: translateX(-50%);
}
#game-1-current .jt-item {
  position: relative;
  margin-top: 0.6rem;
}
#game-1-current .jt-item-up .png-6 {
  position: absolute;
  top: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
}
#game-1-current .jt-item-down .png-6 {
  position: absolute;
  bottom: 0.86rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
}
#rule-1 {
  margin-top: 0.8rem;
  z-index: 100;
}
#rule-1 .rule-title {
  border-top: none;
  margin-bottom: 0.2rem;
}
#rule-1 .rule-title .text {
  background: none;
  margin: 0 0.16rem;
  margin-top: -0.1rem;
}
#rule-2 {
  position: fixed;
  margin: 0;
  padding: 0;
  top: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
}
#olock-1,#olock-2 {
  display: none;
}
#res-name {
  display: block;
  /* font-family: myFont3; */
  margin-bottom: -0.28rem;
}
#png-18 {
  position: fixed;
  bottom: -0.8rem;
  left: 0;
  width: 100%;
}
audio {
  opacity: 0;
  visibility: hidden;
  z-index: -1;
}
.result-page {
 z-index: 100;
 display: block;
}
.save-text {
  font-size: 0.26rem;
  margin-top: 6px;
  margin-bottom: 0.4rem;
  color: #ff5d52;
}
#again-btn {
  width: 3rem;
  height: 0.74rem;
  font-size: 0.28rem;
  border: none;
  color: #fff;
  background: #ff5d52;
  border-radius: 0.4rem;
  text-align: center;
  justify-content: center;
  /* margin-top: 6px; */
}
#again-div {
  z-index: 999;
  margin: 0 auto;
  text-align: center;
  position: fixed;
  color: #743a3a;
  bottom: 2.1rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
}
#canvas {
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
}
#canvas,#canvas img {
  width: 100%;
  height: 100%;
}
.last-page {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  overflow: hidden;
  background: #ffde2d;
  display: none;
  justify-content: center;
}
.result-page {
  position: absoulte;
  width: 90%;
}
#share-page {
  display: block;
  z-index: 101;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0 0.28rem;
}
.result-page .code {
  height: 2.2rem;
  justify-content: space-between;
}
.relative {
  width: 100%;
  height: 100%;
  position: relative;
  justify-content: center;
}
#res-title[src="./imgs/result-5.png"] {
  width: 70%;
}
#res-title[data-id='5'] {
  width: 70%;
}
